#include <iostream>
#include "matplotlibcpp.h"

namespace plt = matplotlibcpp;

int main() {
    std::vector<double> x(5);
    double y[5];
    for (int i = 0; i < 5; i++)
    {
        x[i] = i*i * 2 + 2;
        y[i] = i;
    }
    plt::plot(x);
    plt::show();
    return 0;
}
